package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.dto.XsOrderDto;
import com.ruoyi.system.domain.vo.XsStatisticsVo;
import com.ruoyi.system.domain.vo.order.XsOrderListVo;
import com.ruoyi.system.domain.xs.XsOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 97099
* @description 针对表【xs_order(TB 订单表)】的数据库操作Mapper
* @createDate 2025-01-03 10:22:02
* @Entity generator.domain.XsOrder
*/
public interface XsOrderMapper extends BaseMapper<XsOrder> {

    /**
     * 统计 收益，订单，用户信息
     * @return
     */
    XsStatisticsVo statistics(XsOrderDto orderDto);

    /**
     * 订单统计
     * @param orderDto
     * @return
     */
    XsStatisticsVo newStatistics(XsOrderDto orderDto);

    /**
     * 首页统计
     * @param orderDto
     * @return
     */
    XsStatisticsVo statisticsHome(XsOrderDto orderDto);

    /**
     * 订单列表
     * @param orderDto
     * @return
     */
    List<XsOrderListVo> selectOrderList(XsOrderDto orderDto);

    /**
     * 新订单列表
     * @param orderDto
     * @return
     */
    List<XsOrderListVo> queryOrderList(XsOrderDto orderDto);


    void stateFlow();

    void stateFlow2();

    void expenseAccount(@Param("orderId") List<String> orderId);

    void expenseAccount2(@Param("orderId") List<String> orderId);
}




